package com.ktwlsoft.archivemanage.payload.basisManage;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * @author JokerMo
 * @version 1.0
 * @date 2020/4/28 15:19
 */
@ApiModel("依据新增")
@Getter
@Setter
public class BasisSaveRequest {
    @ApiModelProperty("依据名称")
    @Size(max = 20, message = "依据名称超长")
    @NotNull(message = "依据名称不能为空")
    private String basisName;

    @ApiModelProperty("依据内容")
    @NotNull(message = "依据内容不能为空")
    private String content;

    @ApiModelProperty("状态1正常，0禁用，-1删除")
    private byte state;
}
